package com.hengtian.roastwall.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class PicWebMvcConfigurer implements WebMvcConfigurer {
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        //
//        registry.addResourceHandler("/pic/**").addResourceLocations("file:C:\\Users\\14229\\Pictures\\QQ浏览器截图\\");
        registry.addResourceHandler("/pic/**").addResourceLocations("file:/usr/local/roastWall/pic/");
    }

}
